﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Portal.Model;
using Portal.Logic.Models;

namespace Portal.Logic.Creators
{
    /// <summary>
    /// Class <see cref="UserInfoCreator"/> declare user info creator
    /// </summary>
    public class UserInfoCreator : IUserInfoCreator
    {
        #region Methods
        /// <summary>
        /// Create user info based on user
        /// </summary>
        /// <param name="user">The user.</param>
        /// <returns></returns>
        public IUserInfo From(IUser user)
        {
            var info = new UserInfo();
            info.User = user;
            return info;
        }
        #endregion
    }
}
